import http from "@/utils/request/httpRequest.ts";
import type {ModuleType, ModuleTypeList} from "@/types/moduleType.ts";

export const listModule = (params?: any) => {
  return http.get<ModuleTypeList[]>('review-module/listModule', { params });
};

export const addModule = (data: ModuleType) => {
  return http.post('review-module/add', data);
};

export const updateModule = (data: ModuleType) => {
  return http.post('review-module/update', data);
};

export const deleteModule = (params: { id: string }) => {
  return http.post('review-module/delete', params);
};

